package middle

type BarcodeInfo struct {
	No       string `json:"no"`
	Readable bool   `json:"readable"`
	Barcode  string `json:"barcode"`
	DeviceNo int    `json:"deviceNo"`
}

type WeightInfo struct {
	No       string `json:"no"`
	Readable bool   `json:"readable"`
	Result   int    `json:"result"`
	DeviceNo int    `json:"deviceNo"`
}

type AppearanceInfo struct {
	No           string `json:"no"`
	Result       int    `json:"result"`
	OverHeight   bool   `json:"overHeight"`
	OverForward  bool   `json:"overForward"`
	OverBackward bool   `json:"overBackward"`
	OverLeft     bool   `json:"overLeft"`
	OverRight    bool   `json:"overRight"`
	HeightType   int    `json:"heightType"`
	DeviceNo     int    `json:"deviceNo"`
}

// 入库输送线扫描完成通知回调对象
type ConveyorScanParam struct {
	MpCode          string           `json:"mpCode"`
	DeviceNo        int              `json:"deviceNo"`
	BarcodeInfos    []BarcodeInfo    `json:"barcodeInfos"`
	WeightInfos     []WeightInfo     `json:"weightInfos"`
	AppearanceInfos []AppearanceInfo `json:"appearanceInfos"`
}
